package com.iring.domain.common;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;

/**
 * 异常订单实体
 *
 * @author wanggan
 */
@Entity
@Table(name = "t_exception_amount_task_b")
public class AmountTask implements Serializable {

    private static final long serialVersionUID = 5275183248780674731L;
    @Id
    @GeneratedValue
    @Column(name = "id")
    private Integer id;

    @Column(name = "username")
    private String username;

    @Column(name = "operation_amount",precision = 10,scale = 2)
    private Double optamounts;

    @Column(name = "real_charge_amount",precision = 10,scale = 2)
    private Double realamouts;

    @Column(name = "operation_type")
    private Integer opttype;

    @Column(name = "operation_status")
    private Integer optstatus = 0;

    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createtime;

    @Column(name = "update_time")
    @Temporal(TemporalType.TIMESTAMP)
    @Generated(GenerationTime.ALWAYS)
    private Date updatetime;

    @Column(name = "remark")
    private String remark;

    @Column(name = "order_id")
    private String orderid;

    @Override
    public String toString() {
        return "{id:" + id + ",username:" + username + ",optamounts:" + optamounts + ",realamouts:" + realamouts + ",opttype:" + opttype + ",optstatus:" + optstatus + ",createtime:" + createtime + ",updatetime:" + updatetime + ",remark:" + remark + ",orderid:" + orderid + "}";
    }

    public Integer getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public Double getOptamounts() {
        return optamounts;
    }

    public Double getRealamouts() {
        return realamouts;
    }

    public Integer getOpttype() {
        return opttype;
    }

    public Integer getOptstatus() {
        return optstatus;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public String getRemark() {
        return remark;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setOptamounts(Double optamounts) {
        this.optamounts = optamounts;
    }

    public void setRealamouts(Double realamouts) {
        this.realamouts = realamouts;
    }

    public void setOpttype(Integer opttype) {
        this.opttype = opttype;
    }

    public void setOptstatus(Integer optstatus) {
        this.optstatus = optstatus;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }
}
